#include "../util/param.h"
#include "draw.h"
#include "print.h"
#include "memo.h"
#include "proc.h"

extern struct run *freelist;

void myMain ()
{
  printInit ();

  printStr ("Welcome to smart OS!\n");

  kinit ();

  myPrintf ("the address of freelist = %d\n", freelist);

 
  myPrintf ("initialize the first process!\n");

  userInit ();

  myPrintf ("process scheduler starting:\n");

  procScheduler ();

  // myPrintf ("kernel running...\n");
  while (1)
    ;
  
  return;
}
